package com.xncoding.starter.configure;

import com.xncoding.starter.inter.GlobalProperConfig;
import com.xncoding.starter.inter.Reading;
import com.xncoding.starter.service.GlobalProperService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class  GlobalProperConfigure {
    @Bean
    @ConditionalOnMissingBean(GlobalProperConfig.class)
    public GlobalProperConfig globalProperConfig() {
        return new GlobalProperService();
    }
}
